<template>
  <el-dialog title="查找" :visible.sync="dialogFormVisible">
    <el-form ref="form" :model="form">
      <el-form-item label="单号" :label-width="formLabelWidth">
        <el-input v-model="form.bill_num" autocomplete="off" clearable />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="submit">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      form: {
        bill_num: ''
      },
      formLabelWidth: '80px',
      dialogFormVisible: false

    }
  },
  methods: {
    submit() {
      this.$emit('search', this.form)
      this.dialogFormVisible = false
    }
  }

}
</script>

<style lang="sass" scoped>

</style>
